package sg.edu.nus.iss.vmcs.controller;

import sg.edu.nus.iss.vmcs.entity.AbstractStoreFactory;
import sg.edu.nus.iss.vmcs.entity.Brand;
import sg.edu.nus.iss.vmcs.entity.StoreItem;
import sg.edu.nus.iss.vmcs.entity.StoreObject;
import sg.edu.nus.iss.vmcs.util.Environment;

public class BrandStoreController extends StoreController1 {
	protected static BrandStoreController brandStoreController = null;
	
	protected void init(String modelName){
		setModelName(modelName);
		setStore(AbstractStoreFactory.getInstance(Environment.getMachineModel()).getBrandDrinkInstance());
	}
	
	private BrandStoreController(String modelName){
		init(modelName);
	}
	
	public static BrandStoreController getInstance(){
		if(brandStoreController == null ){
			brandStoreController = new BrandStoreController(Environment.getMachineModel());
			
		}		
		return brandStoreController;
	}
}
